-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disconnect flag not respected in link_ems_inventory #16618
Conversation
@borod108 please review |
ems.remove_all_children | ||
else | ||
elsif !root_id.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about just ems.remove_all_children if disconnect
so we can leave the if/else conditions the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@pkliczewski can you add a test to catch this case? |
@agrare sure, will add a test |
Thanks! |
When new vm is created we use `save_ems_inventory_no_disconnect` where we set disconnect flag to `false`. It was not respected for all operations. Bug-Url: https://bugzilla.redhat.com/1518739
7375a2d
to
89b617d
Compare
Checked commit pkliczewski@89b617d with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/ems_refresh/link_inventory.rb
|
disconnect flag not respected in link_ems_inventory (cherry picked from commit c2fb020) https://bugzilla.redhat.com/show_bug.cgi?id=1526042
Gaprindashvili backport details:
|
When new vm is created we use
save_ems_inventory_no_disconnect
wherewe set disconnect flag to
false
. It was not respected for alloperations.
Bug-Url:
https://bugzilla.redhat.com/1518739